<?PHP
if (isset($_POST['action'])) {
	if (($_POST['action'] == "View Shops in Region") && (isset($_POST['checkbox_shopLocation']))) {
	//List all product in the same category with THE 1st CHECKED-BOX item
		session_start();
		$_SESSION['checkbox_shopLocation'] = $_POST['checkbox_shopLocation'];
		header('Location: ./region.php');
	}
	elseif ($_POST['action'] == "Update Shop Information") {
		session_start();
		$_SESSION['checkbox_shopLocation'] = $_POST['checkbox_shopLocation'];
		header("Location: ./update_shop.php");
	}
	elseif ($_POST['action'] == "Delete Shops") {
		if (isset($_POST['checkbox_shopLocation'])) {
			session_start();
			$_SESSION['checkbox_shopLocation'] = $_POST['checkbox_shopLocation'];
			header("Location: ./delete_shop.php");
		}
		else {
		header("Location: ./manage_shops.php");
		}
	}
	else {
		header("Location: ./manage_shops.php");
	}
}
?>	